﻿<Page
    x:Class="SimpleRssReader.BlogPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SimpleRssReader"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Controls="using:Windows8Accelerator.Core.Xaml.Controls"
    mc:Ignorable="d">

    <Page.Resources>
        <CollectionViewSource
            x:Name="postsViewSource"
            Source="{Binding Posts}"
            IsSourceGrouped="false"
            />
    </Page.Resources>

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Controls:SuperSilhouette HeaderSource="{Binding Blog.Name}">
            <Grid>
                <Controls:SuperListView 
                    x:Name="SuperSemanticZoomListView" 
                    ItemsSource="{Binding Source={StaticResource postsViewSource}}"
                    SelectionMode="None"
                                                    
                    FullScreenLandscapeItemWidthString="250"
                    FullScreenLandscapeItemHeightString="250"
                    FullScreenLandscapeGroupMarginString="0,0,20,0"
                    FullScreenLandscapeGroupHeaderTemplate="{StaticResource BlogHeaderTemplate}"
                    FullScreenLandscapeItemTemplate="{StaticResource PostTemplate}"
                    FullScreenLandscapePanelMarginString="114,0,0,50"                    
                                                    
                    SnappedGroupHeaderTemplate="{StaticResource BlogHeaderTemplate}"
                    SnappedItemTemplate="{StaticResource PostTemplateSnapped}"
                    SnappedItemWidthString="280"
                    SnappedItemHeightString="110"
                    SnappedGroupMarginString="0,0,0,1/30"
                    SnappedPanelMarginString="20,0,20,-1/30"
                
                />
            </Grid>
        </Controls:SuperSilhouette>
    </Grid>
</Page>